export const myApplyList = [
  {
    name: "编辑项目",
    id: "editPIProject",
    number: "83",
    icon: require("@/assets/single/eidtProject.png"),
  },
  {
    name: "上传文档",
    icon: require("@/assets/single/file.png"),
    id: "uploadDeliverable",
    number: ""
  },
  {
    id: "createTaskbook",
    icon: require("@/assets/single/task.png"),
    name: "创建项目任务书",
    number: "200"
  },
  {
    number: "117",
    icon: require("@/assets/single/review.png"),
    name: "创建评审",
    id: "createReview",
  },
  {
    name: "创建变更",
    id: "createChange",
    icon: require("@/assets/single/change.png"),
    number: "113"
  },
  {
    id: "createIssue",
    number: "114",
    icon: require("@/assets/single/question.png"),
    name: "创建问题",
  },
  {
    number: "112",
    icon: require("@/assets/single/risk.png"),
    name: "创建风险",
    id: "createRisk",
  },
  {
    name: "设置状态",
    id: "setState",
    icon: require("@/assets/single/status.png"),
    number: ""
  },
  {
    name: "创建结项验收表",
    icon: require("@/assets/single/check.png"),
    id: "createKnotitem",
    number: "204",
  },
  {
    id: "projectCheck",
    icon: require("@/assets/single/conclusion.png"),
    name: "结项检查",
    number: "83",
  },
  {
    name: "汇总项目数据",
    id: "summarizeProject",
    icon: require("@/assets/single/data.png"),
    number: "82",
  },
  {
    id: "progressProject",
    icon: require("@/assets/single/progress.png"),
    name: "更新项目进展",
    number: "83",
  },
  {
    icon: require("@/assets/single/thingworx.png"),
    number: "",
    name: "推送项目到RDP",
    id: "sendDataToTWX",
  },
  {
    id: "closeProject",
    number: "",
    icon: require("@/assets/single/eidtProject.png"),
    name: "项目关闭",
  },
];
export const judgeApply = {
  actions: [
    {
      number: "",
      id: "setState",
    },
    {
      id: "projectCheck",
      number: "83",
    },
    {
      id: "editPIProject",
      number: "83",
    },
    {
      id: "uploadDeliverable",
      number: "",
    },
    {
      id: "summarizeProject",
      number: "82",
    },
    {
      id: "progressProject",
      number: "83",
    },
    {
      id: "createKnotitem",
      number: "204",
    },
    {
      id: "sendDataToTWX",
      number: "",
    },
    {
      id: "createTaskbook",
      number: "200",
    },
    {
      id: "createIssue",
      number: "114",
    },
    {
      id: "createRisk",
      number: "112",
    },
    {
      id: "createReview",
      number: "117",
    },
    {
      id: "closeProject",
      number: "",
    },
    {
      id: "createChange",
      number: "113",
    },
    {
      id: "closeProject",
      number: "",
    },
  ]
};
// 产品开发项目导航 / 关键零部件项目导航
export const projectNav = [
  {
    name: "产品定义评审",
    children: [
      {
        name: "创建产品定义评审",
        imgSrc: require("@/assets/single/commit.png")
      }
    ]
  },
  {
    name: "立项评审",
    children: [
      {
        name: "创建团队",
        url: "/single/teamSingle",
        imgSrc: require("@/assets/single/protectTeam.png"),
        
      },
      {
        imgSrc: require("@/assets/single/planning.png"),
        name: "创建计划",
        url: "/single/projectPlan",
      },
      {
        imgSrc: require("@/assets/single/riskBook.png"),
        url: "/single/projectPaper",
        name: "创建项目任务书",
      },
      {
        name: "创建立项评审",
        imgSrc: require("@/assets/single/commit.png"),
        url: "/single/reviewSingle/createReview",
      },
    ]
  },
  {
    name: "总体方案评审",
    children: [{
      name: "商务早期介入",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      imgSrc: require("@/assets/single/create.png"),
      name: "申请产成品编码",
    },
    {
      name: "创建验证需求",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      imgSrc: require("@/assets/single/create.png"),
      name: "创建部件（系统）总体方案评审",
    },
    {
      name: "创建总体方案评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
  {
    name: "详细设计评审",
    children: [{
      name: "选型型谱物料",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "申请采购计划",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "申请外购件编码",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建初物清单",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建仿真委托书",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建试验规划",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "分析专利风险",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建部件（系统）技术设计评审",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建设计方案终评",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建施工图评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
  {
    name: "样机试制决策",
    children: [
      {
        name: "查询采购进度",
        imgSrc: require("@/assets/single/search.png")
      },
      {
        name: "创建样机试制决策",
        imgSrc: require("@/assets/single/create.png")
      },
    ]
  },
  {
    name: "样机下线评审",
    children: [
      {
        name: "创建新产品质量问题",
        imgSrc: require("@/assets/single/create.png")
      },
      {
        name: "创建样机下线评审",
        imgSrc: require("@/assets/single/create.png")
      },
    ]
  },
  {
    name: "样机试验验证评审",
    children: [{
      name: "创建试验申请",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "整改试验不合格项",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建样机试验验证评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
  {
    name: "公告发布",
    children: [{
      name: "创建认证公告",
      imgSrc: require("@/assets/single/create.png")
    }
    ]
  },
  {
    name: "小批量产决策",
    children: [{
      name: "创建新产品质量问题",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建小批试制决策",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建新增工装验收评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
  {
    name: "小批验证评审",
    children: [{
      name: "创建小批验证评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
  {
    name: "产品定型决策",
    children: [{
      name: "创建结项验收",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建定型决策评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
]
// 研发能力提升项目导航
export const improveNav = [
  {
    name: "立项评审",
    children: [
      {
        imgSrc: require("@/assets/single/protectTeam.png"),
        name: "创建团队",
        url: "/single/teamSingle",
      },
      {
        url: "/single/projectPlan",
        name: "创建计划",
        imgSrc: require("@/assets/single/planning.png"),
        
      },
      {
        imgSrc: require("@/assets/single/riskBook.png"),
        url: "/single/projectPaper",
        name: "创建项目任务书",
      },
      {
        name: "创建立项评审",
        imgSrc: require("@/assets/single/commit.png"),
        url: "/single/reviewSingle/createReview",
      },
    ]
  },
  {
    name: "总体方案评审",
    children: [{
      name: "解决方案评审",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建解决方案评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
  {
    name: "详细设计评审",
    children: [{
      name: "解决方案实施及验证评审",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建实施验证评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
  {
    name: "样机试制决策",
    children: [{
      name: "结项验收评审",
      imgSrc: require("@/assets/single/search.png")
    },
    {
      name: "创建结项验收评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
]
// 技术研究与开发项目导航
export const techStudyNav = [
  {
    name: "立项评审",
    children: [
      {
        imgSrc: require("@/assets/single/protectTeam.png"),
        url: "/single/teamSingle",
        name: "创建团队",
      },
      {
        name: "创建计划",
        imgSrc: require("@/assets/single/planning.png"),
        url: "/single/projectPlan",
      },
      {
        imgSrc: require("@/assets/single/riskBook.png"),
        name: "创建项目任务书",
        url: "/single/projectPaper",
      },
      {
        url: "/single/reviewSingle/createReview",
        name: "创建立项评审",
        imgSrc: require("@/assets/single/commit.png"),
      },
    ]
  },
  {
    name: "总体方案评审",
    children: [{
      name: "技术方案评审",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建技术方案评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
  {
    name: "详细设计评审",
    children: [{
      name: "技术实施决策",
      imgSrc: require("@/assets/single/create.png"),
    },
    {
      imgSrc: require("@/assets/single/create.png"),
      name: "创建技术实施决策",
    },
    ]
  },
  {
    name: "样机试制决策",
    children: [{
      name: "技术方案实施及验证评审",
      imgSrc: require("@/assets/single/search.png"),
    },
    {
      name: "创建实施验证评审",
      imgSrc: require("@/assets/single/create.png"),
    },
    ]
  },
  {
    name: "样机下线评审",
    children: [{
      name: "技术成果推广决策",
      imgSrc: require("@/assets/single/create.png"),
    },
    {
      imgSrc: require("@/assets/single/create.png"),
      name: "创建技术成果推广决策",
    },
    ]
  },
]
// 软件开发项目导航(计算机)
export const compSoftNav = [
  {
    name: "立项评审",
    children: [
      {
        name: "创建团队",
        imgSrc: require("@/assets/single/protectTeam.png"),
        url: "/single/teamSingle",
      },
      {
        name: "创建计划",
        imgSrc: require("@/assets/single/planning.png"),
        url: "/single/projectPlan",
      },
      {
        url: "/single/projectPaper",
        name: "创建项目任务书",
        imgSrc: require("@/assets/single/riskBook.png"),
      }, 
      {
        imgSrc: require("@/assets/single/commit.png"),
        name: "创建立项评审",
        url: "/single/reviewSingle/createReview",
      }
    ]
  },
  {
    name: "总体方案评审",
    children: [{
      name: "概要设计评审",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建概要设计评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
  {
    name: "详细设计评审",
    children: [{
      name: "验收评价",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建验收决策决策评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
]
// 软件开发项目导航（嵌入式）
export const embSoftNav = [
  {
    name: "立项评审",
    children: [
      {
        name: "创建团队",
        imgSrc: require("@/assets/single/protectTeam.png"),
        url: "/single/teamSingle"
      },
      {
        name: "创建计划",
        imgSrc: require("@/assets/single/planning.png"),
        url: "/single/projectPlan"
      },
      {
        name: "创建项目任务书",
        imgSrc: require("@/assets/single/riskBook.png"),
        url: "/single/projectPaper"
      },
      {
        name: "创建立项评审",
        imgSrc: require("@/assets/single/commit.png"),
         url: "/single/reviewSingle/createReview"
      },
    ]
  },
  {
    name: "总体方案评审",
    children: [{
      name: "总体方案评审",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建总体方案评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
  {
    name: "详细设计评审",
    children: [{
      name: "详细设计评审",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建详细设计评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
  {
    name: "样机试制决策",
    children: [{
      name: "方案实施及验证评审",
      imgSrc: require("@/assets/single/search.png")
    },
    {
      name: "创建实施验证评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
  {
    name: "样机下线评审",
    children: [{
      name: "技术成果推广决策",
      imgSrc: require("@/assets/single/create.png")
    },
    {
      name: "创建技术成果决策评审",
      imgSrc: require("@/assets/single/create.png")
    },
    ]
  },
]
//项目
export const columnsProject = [{
  title: "项目名称",
  displayName: "项目名称",
  dataIndex: "name",
  name: "name",
  key: "name",
  align: "left",
  scopedSlots: {
    customRender: "name"
  }
},
{
  title: "项目级别",
  displayName: "项目级别",
  dataIndex: "importantGrade",
  name: "importantGrade",
  key: "importantGrade",
  align: "left",
  fieldType: 'Select',
  fieldValue: ["A", "B", "客户重品", "C", "L", "一般重品"],
  scopedSlots: {
    title: "importantGrade",
    filterDropdown: "filterDropdown",
    filterIcon: "filterIcon",
    customRender: "customRender"
  }
},
{
  title: "项目经理",
  displayName: "项目经理",
  dataIndex: "projectManager",
  name: "projectManager",
  key: "projectManager",
  fieldType: 'Input',
  dataType: "String",
  align: "left",
  scopedSlots: {
    title: "projectManager",
    filterDropdown: "filterDropdown",
    filterIcon: "filterIcon",
    customRender: "customRender"
  }
},
{
  title: "计划立项时间",
  displayName: "计划立项时间",
  dataIndex: "planTime",
  name: "planTime",
  key: "planTime",
  align: "left",
  fieldType: 'Date',
  dataType: "Date",
  scopedSlots: {
    title: "projectManager",
    filterDropdown: "filterDropdown",
    filterIcon: "filterIcon",
    customRender: "customRender"
  }
},
{
  title: "所属研究所",
  displayName: "所属研究所",
  dataIndex: "institute",
  name: "institute",
  key: "institute",
  align: "left"
},
{
  title: "产品大类",
  displayName: "产品大类",
  dataIndex: "productCategory",
  name: "productCategory",
  key: "productCategory",
  align: "left"
},
{
  title: "细分类型",
  displayName: "细分类型",
  dataIndex: "nsegmenttype",
  name: "nsegmenttype",
  key: "nsegmenttype",
  align: "left"
  // ellipsis: true,
}
]
//项目规划书
export const columnsPlanning = [{
  title: "规划书名称",
  dataIndex: "name",
  displayName: "规划书名称",
  name: "name",
  key: "name",
  align: "left",
  scopedSlots: {
    customRender: "name"
  }
},
{
  title: "项目编号",
  displayName: "项目编号",
  dataIndex: "number",
  name: "number",
  key: "number",
  fieldType: "Input",
  fieldValue: null,
  dataType: "Number",
  align: "left",
  scopedSlots: {
    title: "number",
    filterDropdown: "filterDropdown",
    filterIcon: "filterIcon",
    customRender: "customRender"
  }
},
{
  title: "规划员",
  displayName: "规划员",
  dataIndex: "planner",
  name: "planner",
  key: "planner",
  fieldType: "Input",
  fieldValue: null,
  dataType: "String",
  align: "left",
  scopedSlots: {
    title: "planner",
    filterDropdown: "filterDropdown",
    filterIcon: "filterIcon",
    customRender: "customRender"
  }
},
{
  title: "事业部",
  displayName: "事业部",
  dataIndex: "group",
  name: "group",
  key: "group",
  align: "left"
},
{
  title: "研究所",
  displayName: "研究所",
  dataIndex: "institute",
  name: "institute",
  key: "institute",
  align: "left"
},
{
  title: "规划年份",
  displayName: "规划年份",
  dataIndex: "planYear",
  name: "planYear",
  key: "planYear",
  align: "left"
},
{
  title: "创建时间",
  displayName: "创建时间",
  dataIndex: "creatTime",
  name: "creatTime",
  key: "creatTime",
  align: "left",
  fieldType: "Date",
  dataType: "date",
  scopedSlots: {
    title: "creatTime",
    filterDropdown: "filterDropdown",
    filterIcon: "filterIcon",
    customRender: "customRender"
  }
},
]
//项目评审表头
export const columnsReveiw = [
  {
    title: "评审编号",
    displayName: "评审编号",
    dataIndex: "number",
    name: "number",
    key: "number",
    fieldType: "Input",
    fieldValue: null,
    dataType: "Number",
    // width: 35,
    align: "left",
    scopedSlots: {
      title: "number",
      filterDropdown: "filterDropdown",
      filterIcon: "filterIcon",
      customRender: "customRender"
    }
  },
  {
    title: "评审名称",
    displayName: "评审名称",
    dataIndex: "name",
    name: "name",
    key: "name",
    align: "left",
    // width: 80,
    scopedSlots: {
      customRender: "name"
    }
  },
  {
    title: "评审点",
    displayName: "评审点",
    dataIndex: "reviewPoint",
    name: "reviewPoint",
    key: "reviewPoint",
    // width: 40,
    fieldType: "Input",
    fieldValue: null,
    dataType: "String",
    align: "left",
    scopedSlots: {
      title: "reviewPoint",
      filterDropdown: "filterDropdown",
      filterIcon: "filterIcon",
      customRender: "customRender"
    }
  },
  {
    title: "修改者",
    displayName: "修改者",
    dataIndex: "creater",
    name: "creater",
    key: "creater",
    align: "left",
    // width: 30,
  },
  {
    title: "创建时间",
    displayName: "创建时间",
    dataIndex: "createTime",
    name: "createTime",
    key: "createTime",
    fieldType: "Date",
    dataType: "Date",
    align: "left",
    // width: 40,
    scopedSlots: {
      title: "createTime",
      filterDropdown: "filterDropdown",
      filterIcon: "filterIcon",
      customRender: "customRender"
    }
  },
  {
    title: "计划评审时间",
    displayName: "计划评审时间",
    dataIndex: "planReviewTime",
    name: "planReviewTime",
    key: "planReviewTime",
    align: "left",
    fieldType: "Date",
    dataType: "Date",
    // width: 40,
    scopedSlots: {
      title: "planReviewTime",
      filterDropdown: "filterDropdown",
      filterIcon: "filterIcon",
      customRender: "customRender"
    }
  }, 
  {
    title: "评审完成时间",
    displayName: "评审完成时间",
    dataIndex: "modifyTime",
    name: "modifyTime",
    key: "modifyTime",
    align: "left",
    fieldType: "Date",
    dataType: "Date",
    // width: 40,
    scopedSlots: {
      title: "modifyTime",
      filterDropdown: "filterDropdown",
      filterIcon: "filterIcon",
    },
    customRender: function (text, record) {
      return record.state === "评审通过" ? text : ""
    }
  },
  {
    title: "状态",
    displayName: "状态",
    dataIndex: "state",
    name: "state",
    key: "state",
    align: "left",
    fieldType: "Input",
    // width: 40,
    dataType: "String",
    scopedSlots: {
      title: "state",
      filterDropdown: "filterDropdown",
      filterIcon: "filterIcon",
      customRender: "customRender"
    }
  },
]
let username = JSON.parse(sessionStorage.getItem('userInfo')).loginName
// let userName = new Buffer(username,"base64").toString()
let userName = window.btoa(username)
let envName = process.env.NODE_ENV
console.log(envName)
let goRouterUrl = ""
if (envName === 'development' || envName === 'online' || envName === 'test') {
  goRouterUrl = "http://10.0.12.104/"
} else {
  goRouterUrl = "http://gsp.sany.com.cn/"
}
// gsp集成
export const GSPList = [{
  name: "关重件资源确认需求",
  url: goRouterUrl + "gsp-app/index.html#/linkgsp/linkIndex?login_user=" + userName + "&url=/supplier/yfNewsProjectList"
},
{
  name: "新品选型方案需求",
  url: goRouterUrl + "gsp-app/index.html#/linkgsp/linkIndex?login_user=" + userName + "&url=/supplier/yfNewsProjectListXxfa"
},
{
  name: "临时计划提报",
  url: goRouterUrl + "gsp-app/index.html#/linkgsp/linkIndex?login_user=" + userName + "&url=/plan/provisionalplan/provisionalPlanList"
},
{
  name: "采购进度查询",
  url: goRouterUrl + "gsp-app/index.html#/linkgsp/linkIndex?login_user=" + userName + "&url=/plan/provisionalplan/provisionalPlanReport"
},
{
  name: "型谱物料库查询",
  url: goRouterUrl + "gsp-app/index.html#/linkgsp/linkIndex?login_user=" + userName + "&url=/supplier/spectrumMdList"
}
]
let numberMdm = sessionStorage.getItem("mdmNumber"), userinfo = JSON.parse(sessionStorage.getItem('userInfo')).loginName
let MDMRouterUrl = ""
if (envName === 'development' || envName === 'online' || envName === 'test') {
  MDMRouterUrl = `http://10.0.14.112:8081/mdm/materialApply/materialToPage.do?plmProjectNo=${numberMdm}&account=${userinfo}`
} else {
  MDMRouterUrl = `http://dm.sany.com.cn/mdm/materialApply/materialToPage.do?plmProjectNo=${numberMdm}&account=${userinfo}`
}
// mdm集成
export const MDMList = [{
  name: "物料查询",
  url: numberMdm ?  MDMRouterUrl+"&pageType=3" : "javascript:;"
},
{
  name: "外购件编码申请",
  url: numberMdm ?  MDMRouterUrl+"&pageType=2" : "javascript:;"
},
{
  name: "产成品编码申请",
  url: numberMdm ?  MDMRouterUrl+"&pageType=1" : "javascript:;"
}
]
// 评审关联问题
export const questionTable = [
  {
    dataType: "String",
    displayName: "问题编号",
    fieldType: "Input",
    title: '问题编号',
    dataIndex: 'number',
    name: "number",
    tdType: "Text",
    align: 'left',
    selectValue: [],
    InputValue: [],
    DateValue: [],
    filteredValue: [],
  },
  {
    title: '问题名称',
    dataIndex: 'name',
    dataType: "String",
    displayName: "问题名称",
    name: "name",
    tdType: "Text",
    align: 'left',
    selectValue: [],
    fieldType: "Input",
    InputValue: [],
    DateValue: [],
    filteredValue: [],
    scopedSlots: { customRender: "name" }
  },
  {
    title: '问题类别',
    fieldType: "Input",
    name: "issueType",
    tdType: "Text",
    align: 'left',
    selectValue: [],
    dataIndex: 'issueType',
    dataType: "String",
    displayName: "问题类别",
    InputValue: [],
    DateValue: [],
    filteredValue: [],
  },
  {
    title: '问题描述',
    fieldType: "Input",
    name: "desc",
    tdType: "Text",
    align: 'left',
    dataIndex: 'desc',
    dataType: "String",
    displayName: "问题描述",
    selectValue: [],
    InputValue: [],
    DateValue: [],
    filteredValue: [],
  },
  // {
  //   dataType: "String",
  //   displayName: "责任人",
  //   title: '责任人',
  //   dataIndex: 'responsibleUser',
  //   fieldType: "Input",
  //   name: "responsibleUser",
  //   tdType: "Text",
  //   align: 'left',
  //   selectValue: [],
  //   InputValue: [],
  //   DateValue: [],
  //   filteredValue: [],
  // },
  {
    fieldType: "Input",
    name: "expectedSolutionDate",
    tdType: "Text",
    title: '期望解决时间',
    dataIndex: 'expectedSolutionDate',
    dataType: "String",
    displayName: "期望解决时间",
    align: 'left',
    selectValue: [],
    InputValue: [],
    DateValue: [],
    filteredValue: [],
    scopedSlots: {
      title: "expectedSolutionDate",
      filterDropdown: "filterDropdown",
      filterIcon: "filterIcon",
      customRender: "customRender"
    }
  },
  {
    title: '创建时间',
    dataIndex: 'createStamp',
    displayName: "创建时间",
    fieldType: "Input",
    name: "createStamp",
    tdType: "Text",
    align: 'left',
    dataType: "String",
    selectValue: [],
    InputValue: [],
    DateValue: [],
    filteredValue: [],
    scopedSlots: {
      title: "createStamp",
      filterDropdown: "filterDropdown",
      filterIcon: "filterIcon",
      customRender: "customRender"
    }
  },
  {
    title: '提出人',
    dataIndex: 'addedBy',
    name: "addedBy",
    tdType: "Text",
    align: 'left',
    dataType: "String",
    displayName: "提出人",
    fieldType: "Input",
    selectValue: [],
    InputValue: [],
    DateValue: [],
    filteredValue: [],
  },
  {
    fieldType: "Input",
    name: "state",
    tdType: "Text",
    align: 'left',
    title: '状态',
    dataIndex: 'state',
    dataType: "String",
    displayName: "状态",
    selectValue: [],
    InputValue: [],
    DateValue: [],
    filteredValue: [],
  },
]
// 评审关联风险
export const riskTable = [
  {
    title: '风险编号',
    dataIndex: 'number',
    dataType: "String",
    displayName: "风险编号",
    fieldType: "Input",
    name: "number",
    tdType: "Text",
    align: 'left',
    selectValue: [],
    filteredValue: [],
    InputValue: [],
    DateValue: [],
    
  },
  {
    title: '风险名称',
    dataIndex: 'name',
    dataType: "String",
    displayName: "风险名称",
    fieldType: "Input",
    name: "name",
    tdType: "Text",
    align: 'left',
    selectValue: [],
    InputValue: [],
    filteredValue: [],
    DateValue: [],
    scopedSlots: { customRender: "name" }
  },
  {
    title: '风险类型',
    dataIndex: 'riskType',
    dataType: "String",
    displayName: "风险类别",
    fieldType: "Input",
    name: "riskType",
    tdType: "Text",
    align: 'left',
    DateValue: [],
    selectValue: [],
    InputValue: [],
    filteredValue: [],
  },
  {
    title: '风险描述',
    dataIndex: 'riskDescription',
    dataType: "String",
    displayName: "风险描述",
    fieldType: "Input",
    name: "riskDescription",
    tdType: "Text",
    align: 'left',
    selectValue: [],
    DateValue: [],
    InputValue: [],
    filteredValue: [],
  },
  {
    title: '风险解决人',
    dataIndex: 'resolveUser',
    dataType: "String",
    displayName: "风险解决人",
    fieldType: "Input",
    name: "resolveUser",
    tdType: "Text",
    align: 'left',
    selectValue: [],
    DateValue: [],
    InputValue: [],
    filteredValue: [],
  },
  {
    title: '预计完成时间',
    dataIndex: 'fxexpectedSolutionDate',
    dataType: "String",
    displayName: "预计完成时间",
    fieldType: "Input",
    name: "fxexpectedSolutionDate",
    tdType: "Text",
    align: 'left',
    InputValue: [],
    DateValue: [],
    filteredValue: [],
    selectValue: [],
    scopedSlots: {
      title: "fxexpectedSolutionDate",
      filterDropdown: "filterDropdown",
      filterIcon: "filterIcon",
      customRender: "customRender"
    }
  },
  {
    title: '实际解决时间',
    dataIndex: 'resolveDate',
    dataType: "String",
    displayName: "实际解决时间",
    fieldType: "Input",
    name: "resolveDate",
    tdType: "Text",
    align: 'left',
    InputValue: [],
    DateValue: [],
    filteredValue: [],
    selectValue: [],
    scopedSlots: {
      title: "resolveDate",
      filterDropdown: "filterDropdown",
      filterIcon: "filterIcon",
      customRender: "customRender"
    }
  },
  {
    title: '状态',
    dataIndex: 'state',
    dataType: "String",
    displayName: "状态",
    fieldType: "Input",
    name: "state",
    tdType: "Text",
    align: 'left',
    selectValue: [],
    DateValue: [],
    InputValue: [],
    filteredValue: [],
  },
  {
    title: '所属阶段',
    dataIndex: 'activityName',
    dataType: "String",
    displayName: "所属阶段",
    fieldType: "Input",
    name: "activityName",
    tdType: "Text",
    align: 'left',
    selectValue: [],
    DateValue: [],
    InputValue: [],
    filteredValue: [],
  },
  {
    title: '创建者',
    dataIndex: 'creater',
    dataType: "String",
    displayName: "创建者",
    fieldType: "Input",
    name: "creater",
    tdType: "Text",
    selectValue: [],
    InputValue: [],
    DateValue: [],
    filteredValue: [],
    align: 'left',
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    dataType: "String",
    displayName: "创建时间",
    fieldType: "Input",
    name: "createTime",
    tdType: "Text",
    align: 'left',
    InputValue: [],
    DateValue: [],
    filteredValue: [],
    selectValue: [],
    scopedSlots: {
      title: "createTime",
      filterDropdown: "filterDropdown",
      filterIcon: "filterIcon",
      customRender: "customRender"
    }
  },
  {
    title: '提出人',
    dataIndex: 'addBy',
    dataType: "String",
    displayName: "提出人",
    fieldType: "Input",
    name: "addBy",
    tdType: "Text",
    selectValue: [],
    InputValue: [],
    DateValue: [],
    filteredValue: [],
    align: 'left',
  },
  {
    title: '提出时间',
    dataIndex: 'addDate',
    dataType: "String",
    displayName: "提出时间",
    fieldType: "Input",
    name: "addDate",
    tdType: "Text",
    align: 'left',
    InputValue: [],
    DateValue: [],
    filteredValue: [],
    selectValue: [],
    scopedSlots: {
      title: "addDate",
      filterDropdown: "filterDropdown",
      filterIcon: "filterIcon",
      customRender: "customRender"
    }
  }
]
// 评审自检要素
export const factorTable = [
  {
    title: '自检人',
    align: 'left',
    width: 150,
    dataIndex: 'selfCheck',
    className: "selfCheck",
    scopedSlots: { customRender: "name" }
  },
  {
    title: '自检结果',
    align: 'left',
    width: 50,
    ellipsis: true,
    dataIndex: 'elementResult',
    scopedSlots: {
      customRender: "elementResult"
    }
    // customRender: function(text){
    //   return text ? (text === 'Yes' ? "通过" : "不通过") :  ""
    // }
  },
  {
    title: '自检结果说明',
    dataIndex: 'elementResultDes',
    align: 'left',
    ellipsis: true,
    width: 100,
    scopedSlots: {
      customRender: "elementResultDes"
    }
  },
  {
    ellipsis: true,
    align: 'left',
    width: 300,
    title: '自检要素',
    dataIndex: 'elementContext',
    scopedSlots: {
      customRender: "elementContext"
    }
  },
  {
    ellipsis: true,
    width: 70,
    title: '来源',
    dataIndex: 'elementSource',
    align: 'left',
    scopedSlots: {
      customRender: "elementSource"
    }
  },
  {
    title: '交付物描述',
    dataIndex: 'deliverableDec',
    align: 'left',
    ellipsis: true,
     width: 150,
     scopedSlots: {
       customRender: "deliverableDec"
     }
  },
]